import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useCounterStore = defineStore(
    'main',
    () => {
      const count = ref(false)
      const doubleCount = computed(() => count.value * 2)
      function increment(dark) {
        count.value = dark
      }

      return { count, doubleCount, increment}
})
